package com.grgbanking.it.system.dao;

import java.io.Serializable;
import java.util.List;

import com.grgbanking.it.base.IBaseDao;
import com.grgbanking.it.system.entity.Resource;

/**
 * 系统资源Dao
 * 
 * IResourceDao
 * 
 * @author 潘广伟
 * @Email p_3er@qq.com
 * @Date 2014-12-11 下午3:36:35
 * 
 * @version 1.0.0
 *
 */
public interface IResourceDao<T, PK extends Serializable> extends IBaseDao<T, PK >{
	/**
	 * 查找子资源
	 * findByParent
	 * 
	 * @param parentId
	 * @return 
	 * @exception 
	 * @since  1.0.0
	 */
	public List<Resource> findChildren(Integer parentId);
	/**
	 * 获取用户所有的资源
	 * findByUser
	 * 
	 * @param userId 用户ID
	 * @return 
	 * @exception 
	 * @since  1.0.0
	 */
	public List<Resource> findByUser(String userId) throws Exception;
}